package me.aartikov.alligator.listeners;


import me.aartikov.alligator.exceptions.NavigationException;

/**
 * Default implementation of {@link NavigationErrorListener}. Wraps {@link NavigationException} to {@code RuntimeException} and throws it.
 */
public class DefaultNavigationErrorListener implements NavigationErrorListener {
	@Override
	public void onNavigationError( NavigationException e) {

		throw new RuntimeException(e);
	}
}
